package com.hwua.service.impl;

import com.hwua.dao.TeacherDao;
import com.hwua.dao.impl.TeacherDaoImpl;
import com.hwua.entity.Teacher;
import com.hwua.service.TeacherService;

import java.util.List;
import java.util.Map;

/**
 * @author CQY
 */
public class TeacherServiceImpl implements TeacherService{
    TeacherDao dao=new TeacherDaoImpl();
    @Override
    public List<Teacher> findAll() {
        return dao.findAll();
    }

    @Override
    public int save(Teacher teacher) {
        return dao.save(teacher);
    }

    @Override
    public int delete(String id) {
        return dao.delete(id);
    }

    @Override
    public int deleteBatch(String[] id) {
        return 0;
    }

    @Override
    public Teacher findById(String id) {
        return null;
    }

    @Override
    public int update(Teacher teacher) {
        return dao.update(teacher);
    }

    @Override
    public List<Teacher> findSearch(String keyword) {
        return dao.findSearch(keyword);
    }

    @Override
    public List<Map<Object, String>> findReport() {
        return dao.findReport();
    }


}
